package com.newblog.action;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class Box {
	public static void main(String[] args){
		String[] s1 = {"a","b","c","d","e","f"};
		String[] s2 = {"b","c","d","e"};
		Set set1 = new HashSet();
		Set set2 = new HashSet();
	    
		for(int i=0;i<s1.length;i++){
			set1.add(s1[i]);
		}
		for(int i=0;i<s2.length;i++){
			if(set1.contains(s2[i]))
				set1.remove(s2[i]);
			else{
				set2.add(s2[i]);
				
			}
		}
		System.out.println(set1);
		System.out.println(set2);
		
		
	}

}
